# Define source file lists to SRC_LIST
SRC_LIST = l1audio\afe2.c \
           l1audio\am.c \
           l1audio\l1sp.c \
           l1audio\l1audio_idma.c \
           l1audio\tone2.c \
           l1audio\vm.c \
           l1audio\media.c \
           l1audio\l1audio_trace.c \
           l1audio\pcm4way.c \
           l1audio\spt_analyzer.c \
           l1audio\audioPP.c \
           l1audio\vm_drv.c \
           l1audio\sp_enhance.c \
           l1audio\PCMRB.c \
           l1audio\l1audio_service.c \
           l1audio\tone_loopback_rec.c \
           interface\l1audio\l1audio_create.c \
           l1audio\ut_hqa_test.c
                      
           ifneq ($(filter AAC_DECODE, $(strip $(MODULE_DEFS))),)
             SRC_LIST += l1audio\aac_drv.c
           endif
           ifneq ($(filter AAC_PLUS_DECODE, $(strip $(MODULE_DEFS))),)
             SRC_LIST += l1audio\aac_huffman_table.c
           endif
           ifneq ($(filter AMR_CODEC, $(strip $(MODULE_DEFS))),)
             SRC_LIST += l1audio\amr.c \
                         l1audio\amr_table.c \
                         l1audio\amr_drv.c
             ifneq ($(filter DEDI_AMR_REC, $(strip $(MODULE_DEFS))),)
               SRC_LIST += l1audio\amr_dedi.c
             endif
           endif
           ifneq ($(filter __APE_DECODE__, $(strip $(MODULE_DEFS))),)
             SRC_LIST += l1audio\ape_drv.c
           endif
           ifneq ($(filter __ENABLE_AUDIO_DVT__, $(strip $(MODULE_DEFS))),)
             SRC_LIST += l1audio\audio_DVT.c
           endif
           ifneq ($(filter STREAM_SUPPORT, $(strip $(MODULE_DEFS))),)
             SRC_LIST += l1audio\audio_rtp.c \
                         l1audio\rtp_amr_drv.c \
                         l1audio\rtp_aac_drv.c \
                         l1audio\rtp_daf_drv.c \
                         l1audio\rtp_dra_drv.c \
                         l1audio\rtp_cook_drv.c
           else
             ifneq ($(filter __MTV_SUPPORT__, $(strip $(MODULE_DEFS))),)
               SRC_LIST += l1audio\audio_rtp.c \
                           l1audio\rtp_amr_drv.c \
                           l1audio\rtp_aac_drv.c \
                           l1audio\rtp_daf_drv.c \
                           l1audio\rtp_dra_drv.c \
                           l1audio\rtp_cook_drv.c
               endif
           endif
           ifneq ($(filter __AUDIO_DSP_LOWPOWER__, $(strip $(MODULE_DEFS))),)
             SRC_LIST += l1audio\audlp_drv.c \
                         l1audio\audlp_nfi_dsp_drv.c
           endif
           ifneq ($(filter __BT_AUDIO_VIA_SCO__, $(strip $(MODULE_DEFS))),)
             SRC_LIST += l1audio\AVB.c
           endif
           ifneq ($(filter AWB_PLUS_DECODE, $(strip $(MODULE_DEFS))),)
             SRC_LIST += l1audio\awb_plus_drv.c
             ifneq ($(filter STREAM_SUPPORT, $(strip $(MODULE_DEFS))),)
               SRC_LIST += l1audio\rtp_awp_drv.c
             else
             ifneq ($(filter __MTV_SUPPORT__, $(strip $(MODULE_DEFS))),)
               SRC_LIST += l1audio\rtp_awp_drv.c
             endif
           endif
           endif
           ifneq ($(filter __COOK_DECODE__, $(strip $(MODULE_DEFS))),)
             ifneq ($(filter __COOK_DECODE_DSP__, $(strip $(MODULE_DEFS))),)
               SRC_LIST += l1audio\ra_drv.c
             else
               SRC_LIST += l1audio\cook_drv.c
             endif
           endif
           ifneq ($(filter DAF_DECODE, $(strip $(MODULE_DEFS))),)
             SRC_LIST += l1audio\daf_drv.c
           endif
           ifneq ($(filter __DRA_DECODE_SUPPORT__, $(strip $(MODULE_DEFS))),)
             SRC_LIST += l1audio\dra_drv.c
           endif
           ifneq ($(filter __BES_EQ_SUPPORT__, $(strip $(MODULE_DEFS))),)
             SRC_LIST += l1audio\eq_table.c
           endif
           ifneq ($(filter __I2S_INPUT_MODE_SUPPORT__, $(strip $(MODULE_DEFS))),)
             SRC_LIST += l1audio\i2s_drv.c
           endif
           ifneq ($(filter __CTM_SUPPORT__, $(strip $(MODULE_DEFS))),)
             SRC_LIST += l1audio\l1ctm.c
           endif
           ifneq ($(filter CYBERON_DIC_TTS, $(strip $(MODULE_DEFS))),)
             SRC_LIST += l1audio\l1tts.c
           else
             ifneq ($(filter IFLY_TTS, $(strip $(MODULE_DEFS))),)
               SRC_LIST += l1audio\l1tts.c
               endif
           endif
           ifneq ($(filter SINOVOICE_TTS, $(strip $(MODULE_DEFS))),)
             SRC_LIST += l1audio\l1tts.c
           endif
           ifneq ($(filter WAV_CODEC, $(strip $(MODULE_DEFS))),)
             SRC_LIST += l1audio\pcm.c \
                         l1audio\pcm_strm_drv.c
           endif
           ifneq ($(filter __BT_A2DP_PROFILE__, $(strip $(MODULE_DEFS))),)
             SRC_LIST += l1audio\sbc_drv.c \
                         l1audio\daf_rtpss.c
           endif
           ifneq ($(filter BGSND_ENABLE, $(strip $(MODULE_DEFS))),)
             SRC_LIST += l1audio\snd_effect.c
           endif
           ifneq ($(filter __UMTS_RAT__, $(strip $(MODULE_DEFS))),)
             SRC_LIST += l1audio\sp_3g.c
           else
             ifneq ($(filter __UMTS_TDD128_MODE__, $(strip $(MODULE_DEFS))),)
               SRC_LIST += l1audio\sp_3g.c
               endif
           endif
           ifneq ($(filter UT_2WAYWB_RECORD_SUPPORT, $(strip $(MODULE_DEFS))),)
             ifneq ($(filter __UTIL_CLI_SUPPORT__, $(strip $(MODULE_DEFS))),)
               SRC_LIST += l1audio\ut_2waywb_record.c
             endif
           endif
           ifneq ($(filter __ACOUSTIC_LOOPBACK_SUPPORT__, $(strip $(MODULE_DEFS))),)
             SRC_LIST += l1audio\ut_acoustic_loopback.c
           endif
           ifneq ($(filter __UTIL_CLI_SUPPORT__, $(strip $(MODULE_DEFS))),)
             SRC_LIST += l1audio\util_cli_input.c \
                         l1audio\util_cli_parser.c \
                         l1audio\util_cli_task.c \
                         l1audio\util_aud_cmd.c
           endif
           ifneq ($(filter __LG_VOICE_ENGINE__, $(strip $(MODULE_DEFS))),)
             SRC_LIST += l1audio\voice_clarity.c
           endif
           ifneq ($(filter VR_CYBERON, $(strip $(MODULE_DEFS))),)
             SRC_LIST += l1audio\vr_sd.c
           endif
           ifneq ($(filter VRSI_CYBERON, $(strip $(MODULE_DEFS))),)
             SRC_LIST += l1audio\vr_si.c
           endif
           ifneq ($(filter WAV_CODEC, $(strip $(MODULE_DEFS))),)
             SRC_LIST += l1audio\wav_drv_thumb.c \
                         l1audio\wav_thumb.c
           endif
           #ifneq ($(filter DSP_WT_SYN, $(strip $(MODULE_DEFS))),)
           #  SRC_LIST += l1audio\Wavetable_DSPv1.c \
           #              l1audio\Wavetable_DSPv2.c
           #endif
           ifneq ($(filter WMA_DECODE, $(strip $(MODULE_DEFS))),)
             SRC_LIST += l1audio\wma_drv.c
           endif
           ifneq ($(filter __DAF_ENCODE__, $(strip $(MODULE_DEFS))),)
             SRC_LIST +=  l1audio\mp3enc\mp3_enc_drv.c
           endif
           #ifneq ($(filter AAC_DECODE, $(strip $(MODULE_DEFS))),)
           #  SRC_LIST += l1audio\cpr_protection.c
           #else
           #  ifneq ($(filter DAF_DECODE, $(strip $(MODULE_DEFS))),)
           #    SRC_LIST += l1audio\cpr_protection.c
           #    endif
           #endif
           ifneq ($(filter __BT_SUPPORT__, $(strip $(MODULE_DEFS))),)
             SRC_LIST += l1audio\BT_PcmLoopback.c
             ifneq ($(filter BT_Loopback_Test, $(strip $(COMP_DEFS))),)
               SRC_LIST += l1audio\BT_loopback.c
             endif   
           endif
           ifneq ($(filter DSP_WT_SYN, $(strip $(MODULE_DEFS))),)
             DSP_WT_SYN_V1_SUPPORT_PLATFORM = MT6219 MT6223 MT6225 MT6229 MT6253T MT6253 MT6268A MT6268T MT6268H MT6223P
             ifneq ($(filter $(strip $(PLATFORM)) ,$(DSP_WT_SYN_V1_SUPPORT_PLATFORM)),)
                SRC_LIST += l1audio\Wavetable_DSPv1.c
             else
                SRC_LIST += l1audio\Wavetable_DSPv2.c
             endif
           endif
           ifneq ($(filter STREAM_SUPPORT, $(strip $(MODULE_DEFS))),)
             SRC_LIST += l1audio\poc_amr.c
           else
             ifneq ($(filter __VOIP__, $(strip $(MODULE_DEFS))),)
               SRC_LIST += l1audio\poc_amr.c
               endif
           endif
#  Define include path lists to INC_DIR
INC_DIR = l1audio  \
          l1\l1d \
          l1audio\inc \
          l1audio\secure \
          l1audio\secure\VoRTP \
          l1audio\TC01 \
          media\common\include \
          dsp_ram \
          dp_engine\amr515 \
          dp_engine\amr \
          dp_engine\ctm \
          dp_engine\g729 \
          dp_engine\opengl \
          dp_engine\sbc \
          dp_engine\apm \
          dp_engine\aac_ARM_decode \
          ps\l4\include \
          dp_engine\g726 \
          dp_engine\G711_CNG \
          dp_engine\LowcFE \
          dp_engine\resample \
          dp_engine\TimeScaling \
          dp_engine\BesSound\inc \
          vendor\player\ipeer\inc \
          l1audio\mp3enc \
          drv\include \
          interface\hwdrv

ifneq ($(filter __MMI_DSM_NEW__ , $(strip $(MODULE_DEFS))),)                  
	INC_DIR += plutommi\mmi\mythroad\mythroadinc
endif 
 
# Define the specified compile options to COMP_DEFS
COMP_DEFS = APCS_INTWOR
 
# Define the source file search paths to SRC_PATH
SRC_PATH = l1audio \
          interface\l1audio \
          l1audio\inc \
          l1audio\secure \
          l1audio\secure\VoRTP \
          l1audio\tts \
          interface\bt \
          l1audio\mp3enc
 
